package com.itheima;

/**
 * 2025/5/12 21:11
 */
public abstract class DataDao {

    public void connect(){
        System.out.println("连接数据库");
    }

    public void disconnect(){
        System.out.println("断开数据库");
    }

    public abstract void select();

    public void execute(){
        connect();
        select();
        disconnect();
    }




}
